import { createStore, combineReducers, applyMiddleware } from "redux";

// 确保从正确的路径导入 auth reducer
import auth from "./auth/reducer";
// 导入 redux-thunk 的中间件，注意是小写的 t
import thunk from "redux-thunk";
import logger from "redux-logger";

// @ts-ignore

const store = createStore(
    combineReducers({ auth }),
    // @ts-ignore
    applyMiddleware(thunk, logger)
);

export default store;